package com.bhp.bhphrserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bhp.bhphrserver.common.BaseEntity;
import lombok.Data;

/**
 * @ClassName Role
 * @Description TODO
 * @Author 包海鹏
 * @Date 2020/4/30 10:37
 * @Version 1.0
 **/
@TableName("role")
@Data
public class Role extends BaseEntity {

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 角色代码
     */
    @TableField("name")
    private String name;

    /**
     * 角色名称
     */
    @TableField("nameZh")
    private String nameZh;
}
